package com.hifar.test.test.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hifar.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @author zhuWeiWei
 * @description 试验异常数量
 * @date 2024/12/23 16:24
 */
@Data
@ApiModel("试验异常对象")
@TableName("hf_env_test_exception")
public class HfEnvTestException extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableField("test_id")
    @JSONField(name = "testId")
    @NotEmpty(message = "testId不能为空!")
    private String testId;

    @TableField("test_status")
    @JSONField(name = "testStatus")
    private String testStatus;

    @TableField("exception_type")
    @JSONField(name = "exceptionType")
    private String exceptionType;

    @TableField("test_piece_id")
    @JSONField(name = "testPieceId")
    private String testPieceId;

    @TableField("piece_no")
    @JSONField(name = "pieceNo")
    private String pieceNo;

    @TableField("record_user_id")
    @JSONField(name = "recordUserId")
    private String recordUserId;

    @TableField("record_user_name")
    @JSONField(name = "recordUserName")
    private String recordUserName;


    @ApiModelProperty(value = "记录时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JSONField(name = "recordTime")
    private Date recordTime;

    @ApiModelProperty("异常记录")
    @TableField("exception_desc")
    @JSONField(name = "exceptionDesc")
    private String exceptionDesc;


    @TableField("deal_status")
    @JSONField(name = "dealStatus")
    private String dealStatus;

    @TableField("deal_user_id")
    @JSONField(name = "dealUserId")
    private String dealUserId;

    @TableField("deal_user_name")
    @JSONField(name = "dealUserName")
    private String dealUserName;


    @ApiModelProperty(value = "处理时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JSONField(name = "dealTime")
    private Date dealTime;

}
